package com.business.business.web.web;

import cn.hutool.json.JSONObject;
import com.business.business.common.base.BaseController;
import com.business.business.support.annotaion.Action;
import com.business.business.support.model.RespEntity;
import com.business.business.web.service.EmgInfoService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @Author xulumin
 * @Date 2024/3/21 08:46
 * @Version 1.0
 * @Desc
 */
@Controller
@Action
@RequestMapping(value = "emergencyInfo")
public class EmgInfoController extends BaseController {

    @Resource
    private EmgInfoService emgInfoService;


    /**
     * Author: xulumin
     * @param jsonObject
     * Description: 应急保障情况信息
     */
    @GetMapping("getEmgInfo")
    public RespEntity getEmgInfo(@RequestBody(required = false) JSONObject jsonObject) {
        return emgInfoService.getEmgInfo(jsonObject);
    }
}
